package com.tian.jobhandler;

import com.tian.service.MessageUseCouponFailedJobService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * {@code @description:} TODO
 *
 * @author tianwc 公众号：Java后端技术全栈
 * 在线刷题 1200+java面试题和1000+篇技术文章：<a href="https://woaijava.cc/">博客地址</a>
 * {@code @date:} 2024-11-03 19:36
 * {@code @version:} 1.0
 */
@Slf4j
@Component
public class MessageUseCouponFailedJob {
    @Resource
    private MessageUseCouponFailedJobService messageUseCouponFailedJobService;

    @XxlJob("messageUseCouponFailedJob")
    public void process() {
        log.info("MessageUseCouponFailedJob start");
        messageUseCouponFailedJobService.process();
        log.info("MessageUseCouponFailedJob end");
    }
}
